package cn.edu.jmu.oelp.service.impl;

import cn.edu.jmu.oelp.mapper.ValidEntityMapper;
import cn.edu.jmu.oelp.pojo.ValidEntity;
import cn.edu.jmu.oelp.service.ValidEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional(rollbackFor=Exception.class)
public class ValidEntityServiceImpl implements ValidEntityService {

    @Autowired
    ValidEntityMapper validEntityMapper;
    @Override
    public List<ValidEntity> findAllByParagraphsIdArticleIdAndCount(int paragraphsId,int articleId) {
        return validEntityMapper.findAllByParagraphsIdArticleIdAndCount(paragraphsId,articleId);
    }
}
